package com.tsu.mall.order.service.impl;

import com.tsu.mall.common.VO.CheckOutWaresVO;
import com.tsu.mall.order.entity.MemberAddress;
import com.tsu.mall.order.mapper.CheckOutMapper;
import com.tsu.mall.order.service.CheckOutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CheckOutServiceImpl implements CheckOutService {
    @Autowired
    private CheckOutMapper checkOutMapper;
    @Override
    public List<CheckOutWaresVO> selectByIds(String ids) {
        String[] arr=ids.split(",");
         return checkOutMapper.selectByIds(arr);
    }

    @Override
    public List<MemberAddress> selectByMemberId(Integer id) {
        return checkOutMapper.selectByMemberId(id);
    }
}
